from django.db import models

class PublicTrans(models.Model):
    phone = models.IntegerField(max_length=11, primary_key=True)
    origin = models.CharField(max_length=300)
    destination = models.CharField(max_length=300)
    duration = models.CharField(max_length=50)
    distance = models.CharField(max_length=50)
    direction = models.TextField()

    def __unicode__(self):
        return self.phone